home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue3 / Games / xrick / !xrick / include / h / tiles < prev    next >
Text File  |  2004-06-24  |  1KB  |  69 lines

  1. /*
  2.  * xrick/include/tiles.h
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. /*
  15.  * NOTES
  16.  *
  17.  * A tile consists in one column and 8 rows of 8 U16 (cga encoding, two
  18.  * bits per pixel). The tl_tiles array contains all tiles, with the
  19.  * following structure:
  20.  *
  21.  *  0x0000 - 0x00FF  tiles for main intro
  22.  *  0x0100 - 0x01FF  tiles for map intro
  23.  *  0x0200 - 0x0327  unused
  24.  *  0x0328 - 0x0427  game tiles, page 0
  25.  *  0x0428 - 0x0527  game tiles, page 1
  26.  *  0x0527 - 0x05FF  unused
  27.  */
  28.  
  29. #ifndef _TILES_H
  30. #define _TILES_H
  31.  
  32. #include "system.h"
  33.  
  34. #ifdef GFXPC
  35. #define TILES_NBR_BANKS 4
  36. #endif
  37. #ifdef GFXST
  38. #define TILES_NBR_BANKS 3
  39. #endif
  40.  
  41. #define TILES_SIZEOF8 (0x10)
  42. #define TILES_SIZEOF16 (0x08)
  43.  
  44. /*
  45.  * three special tile numbers
  46.  */
  47. #define TILES_BULLET 0x01
  48. #define TILES_BOMB 0x02
  49. #define TILES_RICK 0x03
  50.  
  51. /*
  52.  * one single tile
  53.  */
  54. #ifdef GFXPC
  55. typedef U16 tile_t[TILES_SIZEOF16];
  56. #endif
  57. #ifdef GFXST
  58. typedef U32 tile_t[0x08];
  59. #endif
  60.  
  61. /*
  62.  * tiles banks (each bank is 0x100 tiles)
  63.  */
  64. extern tile_t tiles_data[TILES_NBR_BANKS][0x100];
  65.  
  66. #endif
  67.  
  68. /* eof */
  69.